<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<TITLE>交易监控</TITLE>
	<script language="javascript" src="/script/common.js"></script>
	<script language="javascript"> 

		//全局变量
		var org = Common.cOrg();	//当前单位	
		var qt = {};				//数据表格对象
		var meter;
		
		//页面加载方法
		function load(){
			Eui.showNavigation();
			searchForm.orgName.value = Common.cOrg().name;
			var items = [100,150,160];
			var cardStatus = Common.getSubsetItems("trade_type", items)
			Common.initDict("tradeType",cardStatus,"全 部");
			createTable();
			meter = setTimeout("countSecond()", 1000)
		}
		
		//生成表格，创建QueryTable对象
		function createTable(){
			var columns = []
			columns[5] = {defOrder:true}
			qt = new QueryTable("txmonitor_manage_list","searchForm","datalist",columns);
		}
		function countSecond(){　
			if($("minAmount").value){
					$("minMoney").value = $("minAmount").value * 100;
				}else{
					$("minMoney").value = ""
				}
				if($("maxAmount").value){
					$("maxMoney").value = $("maxAmount").value * 100;
				}else{
					$("maxMoney").value = ""
				}
			qt.showTable();
		　 	meter = setTimeout("countSecond()", 3000)
		}
		//选择机构方法
		function searchSelOrg(){
			selOrg(function(sorg) {
					$('searchForm').orgName.value = sorg.name;
				},{funcType : Constants.SELORG_ALL});
		}
	</script>
</HEAD>
<body onload="load()">
	<!--页面导航-->
	<div class="nav"><div id="nav">&nbsp;</div></div>
	<div id="listview" >	
		<!--查询条件form-->
		<form id="searchForm" name="searchForm" action="">
			<input type="hidden" name="minMoney">
			<input type="hidden" name="maxMoney">
			<div class="searchForm">
				<table cellSpacing=0 cellPadding=4 width="100%" border=0 class="label4">
					<tr>
				    	<td><label>机构名称</label> <input type="text" name="orgName"  readonly class="readonly"><a class="orga" href="#" onclick="searchSelOrg()">&nbsp;&nbsp;</a></td>
						<td><label>终端编号</label> <input type="text" name="eftNo" onblur="checkV(this,'pos')" ></td>	
						<td><label>卡&nbsp;&nbsp;&nbsp;&nbsp;号</label> <input type="text" name="cardAsn" onblur="checkV(this,'asn')"></td>	
						<td><input type=button value="停止监控" onClick="clearTimeout(meter) " ></td>
					</tr> 
					<tr>
						<td><label>交易类型</label> <select name="tradeType"><option></option></select></td>
						<td><label>最小金额</label> <input type="text" name="minAmount" onblur="checkV(this,'amount')"></td>
						<td><label>最大金额</label> <input type="text" name="maxAmount" onblur="checkV(this,'amount')"></td>
						<td><input type=button value="继续监控" onClick="countSecond() " ></td>
					</tr>
				</table>
			</div>
		</form>
		<!--查询结构列表-->
		<div id="datalist"></div>	
	</div>	
 </body>
</HTML>
